package com.biboheart.brick.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EberResponseResult<T> {
    public static final EberResponseResult<?> EMPTY = new EberResponseResult<>();

    private int code; // 结果码，对应结果码表
    private Object message; // 结果描述
    private T result; // 结果

    public static <T> EberResponseResult<T> success(T result) {
        return new EberResponseResult<>(0, "success", result);
    }
}
